package com.me.libgdx_test;

public class ClassCharacterMods {
	//MRnorm, MRplus, PRnorm, PRplus, magicalAttack, undead, fStrike
	int[] mods;
	ClassCharacterMods(){
		mods = new int[]{0,0,0,0,0,0,0,0,0,0};
	}
	ClassCharacterMods(int mod_MRnorm, int mod_MRplus, int mod_PRnorm, int mod_PRplus, int mod_magicalAttack, 
			int mod_undead, int mod_coward, int mod_banish, int mod_fStrike,int mod_blood){
		mods = new int[10];
		mods[0] = mod_MRnorm;
		mods[1] = mod_MRplus;
		mods[2] = mod_PRnorm;
		mods[3] = mod_PRplus;
		mods[4] = mod_magicalAttack;
		mods[5] = mod_undead;
		mods[6] = mod_coward;
		mods[7] = mod_banish;
		mods[8] = mod_fStrike;
		mods[9] = mod_blood;
	}
	public void set_mod(String ailment,int value){
		if(ailment=="MRnorm"){mods[0] = value;}
		if(ailment=="MRplus"){mods[1] = value;}
		if(ailment=="PRnorm"){mods[2] = value;}
		if(ailment=="PRplus"){mods[3] = value;}
		if(ailment=="magicalAttack"){mods[4] = value;}
		if(ailment=="undead"){mods[5] = value;}
		if(ailment=="coward"){mods[6] = value;}
		if(ailment=="banish"){mods[7] = value;}
		if(ailment=="fStrike"){mods[8] = value;}
		if(ailment=="blood"){mods[9] = value;}
	}
	public int return_mod(String ailment){
		if(ailment=="MRnorm"){return mods[0];}
		if(ailment=="MRplus"){return mods[1];}
		if(ailment=="PRnorm"){return mods[2];}
		if(ailment=="PRplus"){return mods[3];}
		if(ailment=="magicalAttack"){return mods[4];}
		if(ailment=="undead"){return mods[5];}
		if(ailment=="coward"){return mods[6];}
		if(ailment=="banish"){return mods[7];}
		if(ailment=="fStrike"){return mods[8];}
		if(ailment=="blood"){return mods[9];}
		return 0;
	}
}
